package ru.nosport.matrixaria.modules.user.test;

import ru.nosport.matrixaria.modules.common.AppServerProcess;
import org.apache.commons.configuration.Configuration;

/**
 * User: vfabr
 * Date: 28.09.2006
 * Time: 18:24:17
 */
public class ModuleShortcutTestStub implements AppServerProcess {
	private boolean isRunning;
	private Configuration conf;

	public ModuleShortcutTestStub(Configuration _conf) {
		this.conf = _conf;
	}


	public ModuleShortcutTestStub() {
		this.isRunning = false;
	}

	public boolean moduleStart() {
		this.isRunning = true;
		return this.isRunning;
	}

	//
	public boolean moduleStop() {
		this.isRunning = false;
		return !this.isRunning;
	}

	//
	public boolean isModuleRunning() {
		return this.isRunning;
	}

	//
	public String moduleStat() {
		return "Running: " + this.isRunning;
	}

	//
	public String getMyName() {
		return "I'am ModuleShortcutTestStub";
	}

	//
	public String talkAct() {
		return "I'am talking";
	}
}
